<!DOCTYPE HTML>
<html>
<body>
  <div style="width:400px; height:500px; overflow:hidden; border:2px solid black">
    <div style="width:300px; height:800px; overflow:hidden; border:2px solid blue; margin-top:-50px">
      <div style="height:450px"></div>
      <div style="height:200px; background:purple"></div>
    </div>
  </div>
</html>
